<template>
  <div class="layout">
    <div class="user-info">
      <div class="left"><img src="~#/avatar.png" alt=""></div>
      <div class="right">
        <p class="name">hello</p>
        <div class="bottom">
          <div class="count-article">
            <p>文章数</p>
            <p>1</p>
          </div>
        </div>
      </div>
    </div>
    <articleList :tableBody=tableBody></articleList>
  </div>
</template>
<script>
import EditArticle from './editArticle'
import articleList from '@/components/articleList/articleList'
export default {
  name: 'home',
  data () {
    return {
      tableBody: [],
      type: [
        'html',
        'css',
        'javaScript',
        'vue',
        'react'
      ]
    }
  },
  created () {
    this.bll = new EditArticle(this)
    this.bll.getArticleList()
  },
  components: {
    articleList
  },
  methods: {
    enter (id) {
      this.$router.push(`/article/${id}`)
    }
  }
}
</script>

<style scoped lang='less'>
  @import url('./editArticle');
</style>
